package cn.edu.seu.ssny.service;


import cn.edu.seu.ssny.entity.DeviceCategoryCommon;
import cn.edu.seu.ssny.entity.Project;
import cn.edu.seu.ssny.service.support.IBaseService;

import java.util.List;

public interface IDeviceCategoryCommonService extends IBaseService<DeviceCategoryCommon,Integer> {
    List<DeviceCategoryCommon> findByProject(Project project);

    DeviceCategoryCommon findByProjectAndName(Project project, String name);

    DeviceCategoryCommon saveAndFlush(DeviceCategoryCommon category, Project project);

}

